import request from '@/utils/request'
// 人员列表
export const propleList = (params) => {
  return request({
    method: 'GET',
    url: '/api/user-service/user/search',
    params
  })
}
// 区域列表
export const areaList = (params) => {
  return request({
    method: 'get',
    url: '/api/vm-service/region/search',
    params: {
      pageIndex: 1,
      pageSize: 1000
    }
  })
}
// 角色列表
export const roleList = () => {
  return request({
    method: 'get',
    url: '/api/user-service/role'
  })
}
// 添加成员
export const pushPeople = (data) => {
  return request({
    method: 'post',
    url: '/api/user-service/user',
    data
  })
}
// 搜索
export const searchList = (params) => {
  return request({
    method: 'get',
    url: '/api/user-service/user/search',
    params
  })
}
// 修改
export const updateThis = (id, data) => {
  return request({
    method: 'put',
    url: '/api/user-service/user/' + id,
    data
  })
}
// 人员信息
export const peopleInfo = (id) => {
  return request({
    method: 'get',
    url: '/api/user-service/user/' + id
  })
}
// 删除
export const deleted = (id) => {
  return request({
    method: 'DELETE',
    url: '/api/user-service/user/' + id
  })
}
// 图片上传
export const getImgUrl = (data) => {
  return request({
    method: 'post',
    url: '/api/vm-service/sku/fileUpload',
    data
  })
}
